/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.bean.pa;

import com.seari.utils.DataUtil;

/**
 *
 * @author Rainbow
 * pa通知
 */
public class PaInstruct
{
   
    //开头 
    public PaHeader header = new PaHeader();
    // 盒号
    public byte boxNum;
    //正文(body)是发送用户发给接收用户报文的内容
    public byte [] body;
    //奇偶校验
    public byte chk;

    @Override
    public String toString()
    {
        StringBuilder builder = new StringBuilder();
        //2 字节
        builder.append(DataUtil.BytesToHexStr(header.getHeader()));
        // 1 字节
        builder.append(DataUtil.BytesToHexStr(new byte[]{boxNum}));
        // 20字节以上
        builder.append(DataUtil.BytesToHexStr(body));
        // 1字节
        builder.append(DataUtil.BytesToHexStr(new byte[]{chk}));
        return builder.toString(); //To change body of generated methods, choose Tools | Templates.
    }
    
    
}
